package day05.practise;

import java.util.Arrays;
import java.util.Random;

public class ArraySortDemo {
    public static void main(String[] args) {
        Random random=new Random();
        int[]nums=new int[10];
        for (int i = 0; i <nums.length ; i++) {
            nums[i]=random.nextInt(100);
        }
        for (int num:nums){
            System.out.println(num);
        }
        Arrays.sort(nums);
        System.out.println("排序:");
        for (int num:nums){
            System.out.println(num);
        }
    }
}
